cmake_minimum_required(VERSION 3.19)
project(CppModule)

set(CMAKE_CXX_STANDARD 17)

# 中文bug
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

include_directories(.)

set(inja_DIR "C:\\Program Files (x86)\\inja\\lib\\cmake\\inja")
find_package(inja 3.4.0)

add_executable(${PROJECT_NAME}
        CmdTools.cpp
        sample.cpp
        RenderTools.cpp
)

target_link_libraries(${PROJECT_NAME}
        pantor::nlohmann_json pantor::inja
)